package com.atguigu.common.exception;

import org.omg.SendingContext.RunTime;

/**
 * @ ClassName GulimallException
 * @ Description TODO
 * @ Author admin
 * @ Date 2021/3/24 9:38
 * @ Version 1.0
 */
public class GulimallException extends RuntimeException{

    private static final long serialVersionUID = 1L;
    /**
     * 错误状态码
     */
    protected Integer errorCode;
    /**
     * 错误提示
     */
    protected String errorMsg;

    public GulimallException(){

    }

    public GulimallException(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
